using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using LControl;namespace Test{ public partial class Form1 : Form { public Form1() { InitializeComponent(); this.comboBoxEx1.Items.Add(new ComboBoxExItem(0, "Item1", 0, null)); this.comboBoxEx1.Items.Add(new ComboBoxExItem(10, "Item2","ShowItem2", 0, null)); this.comboBoxEx1.Items.Add(new ComboBoxExItem(20, "Item3", 0, null)); this.comboBoxEx1.Items.Add(new ComboBoxExItem(0, "Item4", 0, null)); this.comboBoxEx1.DisableMouseWheel = true; } private void Form1_MouseUp(object sender, MouseEventArgs e) { this.localFolderBrowser1.RootPath = ""; } private void toolStripMenuItem1_Click(object sender, EventArgs e) { this.localFileBrowser1.CurrentPath = "E:\\"; }protected override void OnClosed(EventArgs e){base.OnClosed(e);} }}
评论